﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace NewProcessGuarder.converter
{
    public class StateConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return Boolean.Parse(value.ToString()) ? "运行" : "未运行";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
